package com.xwp.service.impl;

import com.xwp.domain.PurchaseApply;
import com.xwp.mapper.PurchaseApplyMapper;
import com.xwp.service.IPurchaseApplyService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xwp
 * @since 2022-09-29
 */
@Service
public class PurchaseApplyServiceImpl extends ServiceImpl<PurchaseApplyMapper, PurchaseApply> implements IPurchaseApplyService {

    @Autowired
    private PurchaseApplyMapper purchaseApplyMapper;

    @Override
    public void approval(Long applyId, Integer status) {
        purchaseApplyMapper.updateStatusById(applyId, status);
    }

}
